.tocify {
    position: fixed;
    top: 160px;
    z-index: 3;
    min-width: 160px;
    max-height: 66vh;
    overflow: auto;
    border: 1px solid #ccc;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}
@media only screen and (max-width: 1419px) {
    .tocify {
        display: none !important;
    }
}
@media only screen and (min-width: 1420px) {
    .tocify {
        right: 0;
        max-width: 200px;
        overflow-x: hidden;
    }
}

@media only screen and (min-width: 1900px) {
    .tocify {
        right: 50px;
        max-width: 320px;
    }
}

@media only screen and (min-width: 2100px) {
    .tocify {
        right: 100px;
        max-width: 420px;
    }
}
.tocify>.close {
    float: right;
    z-index:20;
}

.tocify ul, .tocify li {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 30px;
}
    .tocify>ul:first-of-type {
        margin-top: 24px;
    }
    /* Top level header elements */
    .tocify-header {
        text-indent: 10px;
    }

/* Top level subheader elements.  These are the first nested items underneath a header element. */
.tocify-subheader {
    text-indent: 20px;
    display: none;
}

/* Further indents second level subheader elements. */
.tocify-subheader .tocify-subheader {
    text-indent: 30px;
}

/* Further indents third level subheader elements. You can continue this pattern if you have more nested elements. */
.tocify-subheader .tocify-subheader .tocify-subheader {
    text-indent: 40px;
}

/* Twitter Bootstrap Override Style */
.nav-list > li > a, .nav-list .nav-header {
    margin: 0px;
}

/* Twitter Bootstrap Override Style */
.nav-list > li > a {
    padding: 5px;
}

.tocify-subheader li {
    font-size: 15px;
}

    .tocify-subheader li > a {
        padding-left: 15px;
        line-height: 24px;
    }
.nav-list > .active > a, .nav-list > .active > a:hover {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    background-color: #0088cc;
}
